﻿namespace Morus.Infrastructure
{
    using System;
    using System.Collections.Generic;

    public interface IBus<TMessage> : IEnumerable<TMessage>, IUnitOfWork, IDisposable
    {
        void Push(TMessage message);
        void Push(IEnumerable<TMessage> messages);
        void Clear();
    }
}
